#include "ObstacleCube.h"

using namespace Ogre;

ObstacleCube::ObstacleCube(Ogre::Vector3 location, GridNode* g, Ogre::MeshPtr cubePtr, int iD) : Cube(location, "ObstacleCube", g, cubePtr, iD)
{
	//MaterialPtr mat = MaterialManager::getSingleton().create("ObstacleCubeMat", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
	//mat->setDiffuse(0.5f, 0.5f, 0.5f, 1.0f);
	//mat->setAmbient(0.5f, 0.5f, 0.5f);

		int numSubs = mCubeEntity->getNumSubEntities();
	//mCubeEntity->setMaterial( mat );
	//printSubEntitiesToFile(mCubeEntity, "MasterCube.txt");
	mCubeEntity->setMaterialName("ObstacleCube");
}


/*PipeCube* ObstacleCube::changeToPipeCube() //Alright, so this doesn't delete the current object.  We'll have to remember to do that when we call this function!
{
	Vector3 location = mCubeNode->getPosition();
	sceneMgr->destroyEntity(mCubeEntity);
	return new PipeCube(iD, location, mCubeNode, myGNode, NULL);
}*/